turned the library into a commonjs module
updated readme
Merge branch 'commonjs'