Javascript Combine Array Elements To String Along Meaning