Fix JavaScript setMonth() behavior