Button Changes green to red, loading files via ajax, and created json files for all race