Class ajax -Javascript OO