updated to integrate cross-platform-shapes via CommonJS/browserify