Serving js file with view so that it is served from the same domain as the rest of the app, for issue #1015