implemented method to reload current page in js mazeSearch