An analytic construction of the winding number of $W^{1,n-1}$ maps from $S^{n-1}$