Update to JQuery from JavaScript