Refactored event.js
Refactored event.js
Added licensing and brief file description