Copy rewritten, jsPlumb added