implement ajax and server getting data from server