change the index.js for unclose the window.