Fix issues with user.js

Add missing semicolons, fix indentation of lines and remove an unused function parameter.