reduced timeout to 5 seconds, fixed XMLHttpRequest not always causing updates