Switch to using jQuery for DOM events in examples.