Add COB solution and update README.md
Wrap the code into a function
Add replacecontent for js file