scrollspy ninja fix and partial fix for firefox