Javascript Value Not In Array Javascript Append Function In Matlab