browserify compatibility; fixes #22