JavaScript basic: Check whether a given year is a leap year