changes in PipeNode.js, see #170:

moved constants out of constructor;
factored out constant 2 into CONTROL_HANDLE_OFFSET;
add more line breaks for long lines;
manually hoist vars used in multiple forloops;