Changed flush for node 0.10.0.
Merge pull request #5 from timsweb/node-0.10.0

Changed flush for node 0.10.0.