Use iframe instead of windows.
Implement node registration