add chaining in example index.html