wrote basic prototype for stats function, displaying results in console and on webpage. see stuff()