How to properly get the webpage 'title' variable using referrer in Lightbox