While Loop Array Javascript Append W3schools