Updated CRUD for remove hardcoded JS funciton name