I think this ought to be do-able, especially if you have a javascript programmer who is will to help you. You can tell the programmer that if they can get the script to work in IE then it ought to work just fine in MediaLab. You need to tell them that the data need to be passed like form data using the method=post command. Because you could have a LOT of variables if you are sampling once per second (or even more frequently), you might consider having the data merged into fewer variables which can be sorted out later. E.g., instead of coordinates x=457, y=1036, at time 3050ms representing 3 separate variables, you could have this be a single string variable with a value of "457-1036-3050" or something like that.
See also: www.empirisoft.com/support/showthread.php?t=536
And ps., I'll be happy to help if you need it. See how far you can get with the javascript and then let me know if you run into any trouble with it. Sounds like a great custom item!