support for global variable in app.js