Added support for CommonJS and AMD, updated README