Minor Refactoring

Generalizing declarations in contestTabulation driver and consolidating
repeated HTML