refactor to use module patterns
remove user.js