Fixes #414 Optional scrolling to top of page

Tested with grunt and in a project.