made stats template script in application html erb