* Fixed and tested interaction with the server
* Specified AJAX dataType to "JSON" where is needed