Fix Jquery 1.9 incompatibilites