Generate html table by javascript object array