Fixed script loading for heroku