Why do you prompt for month name instead of just month number? Typing text is more error prone compared to numbers.
If you prompt for numeric birth month, then the date of birth could be easily created.
var dob = new Date(birthYear, birthMonth - 1, birthDay);
Of course, you have to validate the inputs to ensure the valid values are entered.