Pages javascript not compiling in heroku fix