Configured for heroku
Changed ajax syntax