Only clear hash once lightbox has closed