From jQuery to vanilla JS