Fix DOM width retrieval

See https://github.com/mrdoob/three.js/issues/3778#issuecomment-22919229