jquery goes in because it's easier atm.
Rough gameloop