Java Array Tostring Javascript Mdn Set Attribute