commonJsWrapper option

A solution for issue #3 including test.