use js to CRUD