formatted appeding tds to tr in appjs better