minor bug fixes and compatibility checked up to WP4.0 Beta2

git-svn-id: https://plugins.svn.wordpress.org/jquery-smooth-scroll/trunk@955575 b8457f37-d9ea-0310-8a92-e5e31aec5664