Fix behaviour with lightbox and smooth scroll scripts