Move JS for statistics in kr.statistics and improve show/hide