compatibility fix for node 0.10+
Merge pull request #2 from Switch-Company/master

Compatibility fix for node 0.10.x