Group Array Javascript Append W3schools Html