restoring html5 navigation and page loading