Function Push Array Javascript Append To String Java