implement new setProperties() getProperties() for Particle to allow setting all properties at once using a JS hash