Add some comments to phases.js.