Javascript SyntaxError: Unexpected EOF -webkit browsers only
<p>I have a function (show below) that totals up all the hours on the page onBlur of the ".total" input fields. This function works perfectly in FF but in Chrome and Safari I am getting this error: SyntaxError: Unexpected EOF ---I did some research but I am lost as to what might be causing this. </p>

<p>thanks for any help!</p>

<pre><code>function totalUpHours() {
    //add all values to an array
    var hrsTotalsarr = new Array();
    $('.total').each(function() {
        var thisTotal = $(this).val();
        //clean the value
        if (thisTotal == "HRS") {
            thisTotal = 0;
        }
        hrsTotalsarr.push(thisTotal);
    });

    //sum up the array
    var hrsTotal = eval(hrsTotalsarr.join('+'));
    $('#taskHRStotals').val(hrsTotal);
}
</code></pre>
