fix for browserify (incl. firefox)