Fix compatibility issue with `on` and old version of jQuery.
Tidy code: Prefer single quotes