added js functionality to distinguish photos with 2 animals vs 1 animal