removing some unnecessary local vars frmo threadviewer.js