Jquery-uncover is a project mainly written in JavaScript, it's free.
Move viewport quickly to a given element if it's off-screen
Jump to an element if it's outside of the viewport.