AJAX / JQuery work based on using first element of class selector