Clean utils.js and fix data.output