almost working plugin but still has bad lightbox bugs