changed some DOM to JQuery