Adds license information
Fixes typo in method name
First shot to specify the type of the AJAX request
Refines error output for the AJAX call