AJAX submit

From http://jqfundamentals.com/chapter/ajax-deferreds