Clean up scrollspy code