Rails 4 asset pipeline uses /javascripts and /stylesheets routes; doesn't set type attributes. Fixes #539