trying new JS with endpoint for Heroku
Fixed CORS with a POST