Vanilla Javascript Scroll Spy