Quick update to user.js for james
Fix authentication to work with refactored user
Merge branch 'nodejs'