Send an ajax request on click