found this

Title: The Falling Coil Applet
An interactive Java 3D applet field shows the field configuration around a non-magnetic ring as it falls under gravity in the field of a fixed magnet. In the initial configuration the coil has no resistance and levitates in the field of the magnet. Hit run and let the ring bounce several times. At the bottom of a bounce hit the "iron filings" box to see a representation of the complete field. Hit run again and increase the resistance to "10" using the slider. Watch the subsequent behavior of the ring.

The Ejs applet above is fantastic! now with field lines too! thanks Prof Hwang. i will download and learn  ;)
this The Falling Coil Applet by MIT [img][/img] has a special button on the middle right, it is called magnetic field lines by [color=blue][b] iron filing[/b][/color].
i think it is drawn using a techniques called line "Dynamic Line Integral Convolution for Visualizing Streamline Evolution"
The paper is here

The way they did it was by using a plane, to allow such a visualization [img];topic=1449.0;attach=3356;image[/img]. I can't understand the mathematics, maybe you can explore if it can be done on Ejs! Thanks!

Pedagogy wise, it is a good visualization feature to have, because it allow students to relate back to real life "iron filing" representation of magnetic field lines.

for your consideration :)