Update collector.js