Removed the event handling and html node class changing.
Replaced with a function that returns the appropriate class instead.