class ActionView::LookupContext

def formats=(values)

add :html as fallback to :js.
Override formats= to expand ["*/*"] values and automatically
def formats=(values)
  if values
    values.concat(default_formats) if values.delete "*/*"
    if values == [:js]
      values << :html
      @html_fallback_for_js = true
    end
  end
  super(values)
end