Lightbox causing errors on page