Extract the Node.js communication into a separate file
Rewrite plugin and add support for preserving indentation