Fixing close with window.close instead of href="#"