Network Visualization in the Browser

I am working on doing network visualization in javascript using html canvas via John Resig's excellent processing.js. Right now it uses a force directed layout system where each edge in the graph has a spring and all nodes repulsed from each other. I noticed the results seem to be work best in firefox but not safari which makes me wonder if some of the Math object functions differently between the two? Once I separate out the connected components and remove the artificial walls around the simulation it should provide better results since the repulsion system wont cause the graph to expand indefinitely.

This will be part of a large visualization system which I intend to open source if I can. The other part being a diagram tool more suitable for point to point circuits.

Here is a link to my current prototype visualizer.