removing .on and .off so that this is compatible with jquery 1.4.3 (... don't ask why.)