Prep for inline comments and threads, moved some templatey stuff from JS to HTML