Refactored evt_handlers.js and debugged examples/user.js