Create particleFactory.js