fixing ajax button bug for heroku deployment 2