HTML5, customized for VTK and cleaned up code