Java script crash

Javascript custom events also crashes iOS 4.3 and iPhone simulator as
discovered and described by Ryan  Berdeen.

Demonstrated on:
http://static.ryanberdeen.com/share/2011/01/customevent-crash.html

rdar://8870365