examples/sample10: modify main.js