javascript compare two date strings