Add a click event on any link that start with '#'
Animated scroll to hash location. 
Offset variable is useful when having a fixed menu at the top of the page.