Cleaned up some javascript in race animation.