A gallery module written in JavaScript