When using an ajax controller action make sure you exit out of the function, do not use return otherwise it will look for a .html file for the controller function.
Use something like:
exit(json_encode(array('result'=> success', 'message'=> 'Whatever value you want to return')));
Or if you do not want to return any values just use: