app.js production mode fixed