Js Combine Array Into String Javascript Substring