fixed type in user.js