From http://stackoverflow.com/questions/7056293/respond-to-only-format-js-for-all-mime-types