Adapt to latest JavaScript and HTML changes. Parse SMIL objects.