Use scrollspy JS only when needed