updated lightbox basket, fixed bug when encoding string returned as Nonetype