fix scrollspy instructions for javascript call