HTML5/JS image stack viewer