thnx for the help, i've come a little way since the origional post and the project is getting much more complicated, just in case anyone is interested here are some details:
g25 input
system clock decides what you can see through the virtural sun roof (sun, moon, stars, etc...)
sound of real engines (ferrari 308, gti 2.0l 16v, dodge coronet) so far
force feedback for speed sensation
opengl cluster as well as a real VW MKIII VR6 cluster running in real time
i will post the javascript when it is closer to being completed, just you you know the precision of the simulation is not a big factor in the porject, but i do want a small sence of reality.