Make constructor Browserify compatible