make plugin work with jquery 1.9