ajax and class stuff