1var obj=$('<div>').appendTo('body');
2var service=new google.maps.places.PlacesService(obj.get(0));
3service.getDetails({placeId:''},function(PlaceResult, PlacesServiceStatus){
4 // PlaceResult is an object
5 // PlacesServiceStatus is a string
6});