 $(document).ready(function() {
   
   var $comment = ''; // that's two single quotation-marks at the end
   $('#comment').keyup(function() {
     $comment = $(this).val();
     $comment = $comment.replace(/\n/g, "<br />")
       .replace(/\n\n+/g, '<br /><br />');
     $('#comment-preview').html( $comment );
   });

   $name = ''; // that's two single quotation-marks at the end
   $('#name').keyup(function() {
     $name = $(this).val();
     $name = $name.replace(/\n/g, "<br />")
       .replace(/\n\n+/g, '<br /><br />');
     $('#name-preview').html( $name );
   });

   var $link = ''; // that's two single quotation-marks at the end
   $('#link').keyup(function() {
     $link = $(this).val();
     $link = $link.replace(/\n/g, "<br />")
       .replace(/\n\n+/g, '<br /><br />');
	 $full_link = '<a href=\"' + $link + '\">' + $name + '\'s  Website</a>'
     $('#link-preview').html( $full_link );
   });

	$('a.lightbox').lightBox(); // Select all links with lightbox class

 });

