JavaScript: number cal.