Check String Array Javascript Append Function In R Studio