Java Insert Element Into Array Javascript Mdn String