javascript model library for basic CRUD