Support node.js v0.10 and above