converted app.js to TAC array html generation