Fix/handle browserify errors