Fix formify() argument to supply object rather than array
Change setup to trigger and move it after the instantiation of the event handler.
Add form clear to the delete action.
Add check to see if the ID attribute is defined
Add check to see if obj is defined