Remove old xhr method use jquery