Converted the user model from Coffee to JS