changed ajax to heroku app for production upload.