Corrected AJAX debug functions

Created the basic AJAX/JS files for the server client
interaction...thingy...