try/catch instead for browserify