port to nodejs 0.10.x
Merge pull request #68 from mozilla/node0.10port

port to nodejs 0.10.x