Bash Script Find And Replace String In Javascript Method That Returns