Create elbow joints between elements using pure JS/CSS