very quick&dirty port to Node v.0.11.13

No backwards compatability implemented, this was done for personal use, but I decided it would be good to share it as well.