Fix issues with user.js

Add missing semicolons, fix indentation of lines and remove an unused function parameter
Merge pull request #14 from mark-otaris/patch-5

Fix issues with user.js