I am looking at something called three.js. It is for 3d graphics in javascript. I think it will make working on kepler's third law much easier.