Create dynamic scrollspy