Since you mentioned you got the webpage working, that means you've already got the necessary variables on the webpage. It's then a matter of using those variables that are already there to calculate your desired values. The webpage uses the co-ordinates, so they must be there. You, too, can use those to do your own thing.
As far as adding things to a table goes, I'd recommend this tutorial:
You could also have a look at the source of this page to see how I did it: http://jordymoors.nl/interface If not, then try a google search for "append table javascript", that should work.
Particle Well, we're all here to help/learn something, so glad to have you