Update examples/hooked-example.js