Make it CommonJS and npm compatible

This commit allows using FingerprintJS with CommonJS bundlers such as
browserify.