I have a function that loads the API from Google Maps , but every time I try to change url , either to use my key, or even to add the library places to be able to use the search services I have problems.
The function I am using is this:
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp&' + 'callback=initialize';
document.body.appendChild(script);
};