html agnostic fix for issue #74

This fixes #74 for both of us, and is more bulletproof.
https://github.com/BurntSushi/nflgame/issues/74