Fix bug in example.js