The js that calculates the Dog Years problem