Added Example6 with window.setTiemout alternatives