Create connector fn to draw in lines.js