Correction

Sorry it was a `var cls = this;` (corrected)
see below for the explanation