Fixed problems with jQuery 1.9