[node plugin] Use a cleaner way to store modules

Don't leak a 'node' global anymore.