Function is declared as:

String.prototype.toHHMMSS = function () { 

So I think `};` is correct