Calculating the differece between two dates is one month in javascript