fixing statistics page js and correct some page html