fix JSLint errors
prepare for execution on Heroku