Add more tests.
Do not try to fix invalid markup.
Simplify script handling.