[wip] browserify refactor