Update threadscroll.js

Fixed a line left from debug, and added comments.