Let JS retry connection every 5th second after connection is lost.