Finalize "Fill Form" fix by putting window.close() inside callback, removed debug alert.