Add smooth scrolling

Also fixes a jQuery error that was occurring.