rename capturepagedone to __nw_capturepagedone