Sum of residuals gives line of best fit?

For any slope, there is a line such that the sum of the residuals is zero. Drag the purple slider to pick your own slope. [b]If the purple slider disappears, refresh your browser.[/b]

The green line is the least-squares regression line.