Javascript implementation of DICE Racing