Update app.js

moved logging to development mode