Javascript utility to fit a group of images or videos into a grid based on client window size.