Added ability for on() to bind directly to elements and window object.