I don't see any problem on your code.
But you can maybe test this:
function updatePositionBackground(x, y) {
document.body.style.backgroundPosition = x + "px " + y+ "px";
}
A do a sample: http://jsfiddle.net/RN8mB/
You can see that the background position is correctly updated.