mod_admin_stats: major re-factoring of js stats charts.