Ajax spinner and clear input field on submit