This should make it easier to edit things.

I made pre tag and script length counts get compiled automatically, and I added a couple of tests.