Update to work to recent jQuery version