Edited print statement for server.py
Rewrote large chunks of JavaScript to enable multiple endpoints