Bash Check If Array Contains String Javascript Example