add support for CommonJS require

for use with npm and browserify