Medical image viewer in HTML5 / Javascript