Bash Script Match Regex Javascript Replacewith