Prevent lightbox initialising until the document is ready
Merge pull request #935 from lonelyplanet/if-layers-race

Prevent lightbox initialising until the document is ready