change pure JS line to JQuery line