JS local stored CRUD first refactor.