Allow usage of anchor (and buttons) in modal gallery JS