jqueryfied some stuff
added option of using real vs. virtual coordinates
removed some unneded things
made naming consistent
added time variable