dev: Some fixes for statistics javascript