Problem: Try to add a click event handler

This is the simplest thing that could possibly work. We don't use jQuery
yet. This is deliberate to keep things simple, even though the looping
code is pretty gnarly.
Solution: Set classname of table cell