Upgraded jquery, fixed infinite loop bug