prova così
codice:
document.getElementById("container").style.left =((width - 600)/2)+'px';
ciao