Fixed typo (use external method in _sum)
Added JS for stats loading