fixed css.js nodeType issue for global scope