TSP annealing js