Fixed browserify support.

The current version in NPM breaks when trying to compile with browserify, because browserify tries to satisfy jsdom and canvas.