Fiddling around with ajax and php classes