Refactor `render` function.
Move out `debug_timeline.jade` template.