2D Canvas Rope experiment using HTML5 and JavaScript