fix plugin to work with jquery 1.9