changes for jquery upgrade to 1.9.1