remove dead code from user.js