Took out win code, tracking the index value of div in ng-repeat