Added support for CommonJS and AMD, bunped to v0.30