getElementById("bodyId").style.background:url ?

Happy t say , I found my error:
Had this:
var targetBg = document.getElementById(“body”);

Should of had this:
var targetBg = document.getElementById(“bodyId”);
Thanks