What is `factory` here? I don't see it defined anywhere, but is it a browserify thing?