JavaScript ORM Model