Added form capability to event.js