FIX: lightbox is not closed when using the back button

Closes the lightbox when the user hit the back button in the browser.