D3 with Ajax use json but need to repair the refresh