Fixed issue #33 where all documents were opening the lightbox.

The document's lightbox property was being set true, but not being set to false, so the template was reading the lightbox global variable which is a reference to the HTML element. This caused all documents to be treated as images.