While it makes sense when your code runs in old browsers, I am sure it is not necessary for Node.js programs. Please revert this "fix" both here and in lib/PageAgent.js