Update datacollector.js