Update particleFactory.js