node.js: set inputLength to zero when no input is sent
closures.js: swap testing of corsFineGrainedTimeouts or !crossDomain - fixes test/timeout on node, because in node.js we do not define var crossDomain, but corsFineGrainedTimeouts is always true