added image service lightbox to spatial data report, also reorganized js code to keep js out of html