Stop using custom events in events hash

Part of #318
Brace style test against minor browser difference

Might be 0pt or 0px or whatever.