fixing issue with app.js running before bin/www