Cleaner js lightbox code