add methods to particle.js