Change js json request for heroku