replace JQuery with pure JS