var hypotenuse = Math.round(Math.sqrt((firstLeg*firstLeg) + (secondLeg*secondLeg)));
var perimeter = hypotenuse + firstLeg + secondLeg;
var hypotenuse = Math.round(Math.sqrt((firstLeg*firstLeg) + (secondLeg*secondLeg)));
var perimeter = hypotenuse + firstLeg + secondLeg;