Update race.js

If user connect to server and they send wrong kind of data server will be error.