Addition problem, "integers" acting like strings
<pre><code>    var 
        calculator = document.calculator;
            input1 = calculator.input1;
            input2 = calculator.input2;
            result = calculator.result;
            equals = calculator.equals;

    function add(a,b) {
     equals.value = a+b;
    }

    result.addEventListener("click", function() {
     add.apply(add, [input1.value, input2.value]);   
    });

&lt;form name="calculator"&gt;
    &lt;input type="text" name="input1" /&gt;&lt;br /&gt;
    &lt;input type="text" name="input2" /&gt;&lt;br /&gt;
    &lt;input type="button" name="result" value="result" /&gt;&lt;br /&gt;&lt;br /&gt;
    &lt;input type="text" name="equals" readonly="true" /&gt;
&lt;/form&gt;
</code></pre>

<p>It only returns the to numbers together -- not added. For example: 5 + 3 = 53 not 8.
How do I fix this??</p>
