Jquery 1.9 fixes

this fixes #11