changes to jquery and ajax for jquery 1.9.1