This allowed me to dynamically change the svg depending on user input. on CodePen.