window.close() has problem in Chrome