Updated implementation (and resulting html/js files) with clickSelects and onSelected added to the rectangle plot/vertical line.