add example.js translated from example.coffee