Fix on() use for dynamically added objects in DOM.
Update tested to 3.8