simplegallery.js: script for building simple gallery on a HTML webpage