Fire ajax request inside click event. Playing around with jquery.