Added automatic web page reload 5 second after leader is expected.
Changed code to use splitext to remove file suffix.