Fixed wrappers for jQuery on and off functions