fixed bug in user.js file that broke test