Added some fixes to jquery.