Fix possible memory leak with browse, disable js, unbrowse.