Capture window.name writing