Some changes to check if js gets loaded in heroku env