`on` was introduced in jquery 1.7. This maintains backwards compatibility.