fix js to minify properly on heroku