compatibility for node 0.10.x
Merge pull request #5 from pabiagioli/master

Compatibility with node 0.10.x