Create scroll-to-element module

* Move inline javascript to re-usable javascript module