Clever ComonJS to browser packer