An engine for js slideshows