Update average.js