add promise support in stats.js