Created a user-data handler and sended the result from the ajax to it