No, Julian does not work

Because javascript gets the leap year wrong in 1700, 1500, 1400 etc. I
can fix the day of week, but how to fix the leap year?