variable of app.locals should be accessible in mounted app