Move code to JQuery 1.9.1