Javascript racer game using AJAX