Re-working a js betting game to make it nodetakular.