Fixed whitespace conformity in events.js