Trying to write a Heroku API interface in Node.js