@polesye var errorMessage is local, in function scope. Do you think we should define another specific variable where errorMessage is defined, just for that? Things get hoisted.