Commonjs IIFE and commonjs definition changes - #604

- updating examples to include IIFE in tests
- adding docs about `commonjsDefinition`