porting the TSP calculation to javascript

Will not be using java applet. Will use a function that returns the
optimal route using dynamic programming