Allow register.js to overwrite openWindow