javascript demo of travelling salesman