Revert "added support for commonjs modules"

This reverts commit 8ed8ccc5c54ccc563e5d93dce4b074f0b849cc45.
removed dist changes