Browser: set content-type to JS for everything that is not HTML. Crude, but works for now.