updated to jquery 1.9.x compatibility