Adds local mode to app.js for local testing