Browserify support, fixes on clientside