Update example.js

More extensive examples.