Javascript Function Example Problems Using Pythagorean