Updated for Node 0.10

This makes it work for Node > 0.10