undoing js changes to check why heroku generate error in prod mode