fixed #2965: refactor ParticleExamples for jsb

refactor ParticleExamples for jsb