fixed bug found by @noamshemesh, improved scrollspy