Define prepublish script and update browser script