fixes to js stuff and delete event/job