You could use the Number() function too:
var a = "034";
var b = "034";
alert( Number(a) + Number(b) );
That would eliminate any number base confusion on the browser's part, because the Number() function always assumes the number is base-10, unless the string passed to the number function starts with "0x". It always returns a base 10 number.