Fix README.md chapters sequence.
Add common.js to be a place for shared functionality.