fix #11 node.js <=0.8 compatibility