Use process.nextTick()

Fixes #25.