support node.js < 0.10.6

closes #11