removed duplicate functions in stats.html