Modified George's node js code, added new functionality for drag lines