You aren't converting your values to integers. Therefore your result is a concatenated string:
"250" + "250" = "250250";
To convert your values to integers, simply stick a Unary Plus (+
) before the call:
speedR = +$(this).attr('speed-racer');
And:
$(this).attr('racer-offset',
+$(this).attr('speed-racer') + +$(this).attr('racer-offset'));
When converted to an integer:
250 + 250 = 500;