Create entire table in JS