The Fascinating Science Behind the Hubble and James Webb Telescopes