Add Event-Driven Javascript