Update patch_window.js

More dev code...