Update commonjs example for 0.12
Merge pull request #2610 from zpao/update-commonjs-example

Update commonjs example for 0.12