Add .ignore files.
Since `global' represents the global scope in node, we can simplify the code by a lot.