undid changes to add event js