javascript file with student info and dog years problem