Fix bug with class times being added multiple times.

Also change .html("") to .empty().