An image galelry create purely in JavaScript