Hook together the submitted assignments into the Gallery.
Clean up some JavaScript, as per request of @christianv