Update threadscroll.js

Made cleaner.