moved statistics.js errorcheck.js to public/js