close function in index.html