Get stats in ajax to enhance performances