Fixed exception of wrong method
Updated CRUD for remove hardcoded JS funciton name