fix scrollSpy instructions for JS call

Don't really know if this is correct, but at least it only worked for me that way...
Update javascript.html
Merge pull request #9120 from FLOKER/patch-2

fix scrollSpy instructions for JS call