cleaning up user.js