Bash Compare Two Strings Javascript