spotter.js is a flexible, cross-device jQuery plugin which automatically updates the CSS active state of matched menu when the user scrolls the page to a certain content.