Removed globals from user.js in routes