Bash Script Match Regex Javascript Test