Fix for "self is not defined" in node.js

Node.js (v0.10.26) seems to have no "self" global var. Therefore, calling a check on "self.console" throws an exception. This is solved by simply defining the "self" var. I don't understand in wich contexts that var is supposed to be pre-defined, but i guess my patch would not break that use case anyway.