Update index.html

adding least squares function