A CRUD JavaScript class