A feeble attempt at porting over ActiveRecord to client-side JavaScript.