updates needed for jQuery 1.9

fix #399