Java Object Array To String Javascript Program