Fix importPoly() on Node.js

Closes #390