Refactored events.js - prototypical inheritance