Outputting a Sortable, Visual Database Using HTML and Javascript