Moved debug code into for_debug.js.

Moved timing html into time-utils.js.