Moved thread hiding javascript to sparate file.