Fixes to heroku javascript ver440