HTML5 Pythagorean Triangle Solver