fix typo in examples/basic.js