Removing text/javascript content type header sense we aren't supporting jsonp currently.
Drying and refactoring.