change append to html, using a javascript array