Complex CRUD JS page with local storage