User model in JS