Javascript Value Not In Array Javascript Append Function In R