added events.js and basic form