you might have to modify things a bit within the toxiclibsjs.
post here if you get something working
ok. i couldn't help myself.
this is very rudimentary, but i've ported http://haptic-data.com/toxiclibsjs/examples/Attraction2D_pjs.html over to scriptographer, in general i think implementing toxiclibsjs would be more interesting with paperjs.
however, the idea of adding a phyiscs engine for generative design directly within in illustrator is interesting.
you'll need to get the latest toxiclibjs code from http://github.com/hapticdata/toxiclibsjs and copy the build folder into the same directory as the script (Attraction2D_0_1.js)