Based on the
MochiKit
unit tests.