Trying to apply ajax and json dumped from server to load map js