removed unrelated stats.js stuff