added client javascript for out-of-the-box functionality, refactored route/user.coffee