Added some to the AJAX docs and moved the example outside