basic html5-viewer functionality