[node plugin] Fix returning object completions

Issue #430