Slowly moving of from jQuery to vanilla JS