Change jQuery function on to bind to support older jQuery