Fix issues in user.js
Merge pull request #12 from mark-otaris/patch-3

Fix issues in user.js