Script to test index.html for validity

For issue #320

This is by no means exhaustive but I think a good start.