Added dragstart event into startCoords function.