fix misleading typo

I think this was a typo, as I tested the demo in Codepen and it was the `x2` and `y2` values that determined the end of the line, not `y1` and `y2`.