Php Turn Array Into String Javascript Mdn Domcontentloaded In Js