Fix the json loader

Interface changed in one of the previous versions of threejs