edit javascript about CRUD