racer updated for js oop