Yeah there's lots of a Javascript or css or html validators out there, and likely geared towards checking against a set of best practices.
If it was a javascript that checked for the elements you want to ensure is there that would be neat too, I just wouldn't want it to be just me :)
Javascript test?