make app.js run as a node script for testing