Update threadscroll.js

Made compatible for use with additional_javascripts.