added commonjs wrapper

Added an option to produce a CommonJS wrapper, akin to the AMD wrapper. Useful in node-browserify projects.