Fix stuff for web workers.
Release 0.1.1.
Automatically rewritten for npm.