atan2 in JavaScript

 function doMath(){
        var inputNum1=document.form1.input1.value;
        var inputNum2=document.form1.input2.value;
        var result = Math.atan2(inputNum1, inputNum2);
        document.form1.answer.value = result;
    }