Bash Check If String Not In Array Javascript Push Function In Data