Exporting the internals of user.js for jasmine
More tests for user.js