adding process.exit(0) for heroku (?)
changing to node version 0.8.x