Arrays Split Join in JS