I'm pretty sure you meant to write `var width = series.width ? series.width : this.strokeWidth;`
Similarly for the line below.