JavaScript program to calculate age