how to count date between two dates in javascript