Fixed t bug

Fixed a but causing random ts to appear in the HTML source if a timeout
or error occurred. Errors and timeouts should properly show up now.