change fake DOM to sinon