JavaScript: eventUtility