Update swarm.js