changed 'bind' for 'on' in event bindings to fall inline with jquery 1.9+