Rework jQuery to Vanilla JS