tidied up lightbox and fixed js