I'm sure there are many ways to do this, I'm not in front of my box right now but both these should work.
To get the 2 decimal places you can use the toFixed(2) expression.
sVal = "0" + sVal.toFixed(2);
To get the leading 0 you could modify the line of code to:
if (sVal < 10) {sVal = "0" + sVal.toFixed(2) } else {sVal = sVal.toFixed(2)};
I think I have the syntax right, but if not it might be pointer in the right direction.
Phil