give up on the jquery event-handling/version battle and write the event handling system in plain old javascript instead