Some tidy up. Externalise more JS. Used better names for some HTML ids.
lazy loading of the images on the browse page