added missing js code (present in heroku)