FactoryJS should use CommonJS, browserify

FactoryJS should use CommonJS, browserify
Addresses: #50, #51, #52