fixed bug that crashed sidebar when in a closed thread.

Added semicolons where needed.
Removed unneeded commented code in my rainbow script.