loads resources properly for stats.jsp