While Loop Through Array Javascript Append Text