JavaScript: support Node 0.6.12