chain.js notes