post to heroku-app, not localhost
move class declarations to header