fixed stats.js for tokumx #579