convert javascript to an html table for use in html-based documentation