HTML viewer init