Display a table using javascript