JS divided by logical sections, lightbox widget introduced