Reorganized racing.js