Scroll spy in plain vanilla javascript for modern browsers.