Fix for ancient versions of node.js