While Loop Array Javascript Append Text