Remove most hardcoded values from JavaScript code.

Most of the hardcoded test values in the JavaScript code have been
removed. Now the code works off of an array of available exchanges.
Cleaned up so old code.

Nothing really to see here. Did a small amount of code cleanup.