added some changes and stats.js