Add stats for totaljs