In reference to “the self variable”… it is not a good idea to use the word “self” as the variable. Douglas Crockford himself uses “that” instead of “self” now, because self can be confused in some browsers as a synonym for the global “window” object.