Fixed prepublish script and index to work with browserify