updated js file dogyears

included a alert to show print out