change background img on js code example
Example: js style background image by id
document.getElementById('Demo').style.backgroundImage = "url('Test.png')";
document.getElementById('Demo').style.backgroundImage = "url('Test.png')";