javascript racer 3 - now with more OO