object oriented javascript racer