JS difference of squares done