Support jQuery 1.9 and fixed error in IE 7