statistic's page javascript fix