Java New Double Array Javascript Append Text