Fixes cancelTimeout error (by using clearTimeout).

I receive this error message -- `ReferenceError: cancelTimeout is not defined`.  I see that `clearTimeout` is used elsewhere.

Sorry about the whitespace change at the end of the file.  I used Github's web editor and it made the change automatically.