Refactoring: setTdHover bug fix

setTdHover had a small bug where it would break with tds that had no inner html.
Refactoring: Added a course cacheing function.

Course cacheing function should also be applied to
Refactoring: Fixed typo