rollback to window.location

self.close() not working in a app