[node plugin] Fix undefined variable

Issue #430