Update commonjs example for 0.12

Fixes #2604