updated jbuilder to put stats in stats object