Add Event from Java Script