Javascript code to initialise magnific lightbox. Should be run in  $(document).ready(function() {} or near the end of the page.