Generic Google Map Example with Markers

HTML

<h1>YUHUUUU</h1>

CSS

h1 {
    color:purple;
}

JavaScript

function loadExtScript(src, test, callback) {
    var s = document.createElement('script');
    s.src = src;
    document.body.appendChild(s);

    var callbackTimer = setInterval(function () {
        var call = false;
        try {
            call = test.call();
        } catch (e) {}

        if (call) {
            clearInterval(callbackTimer);
            callback.call();
        }
    }, 100);
}

//load jQuery check if it loaded and perform an append

loadExtScript('https://code.jquery.com/jquery-2.1.4.js', function () {
    return (typeof jQuery == 'function');
}, jQueryLoaded);






function jQueryLoaded() {
    loadExtScript('https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js', function () {
        return (typeof angular == 'object');
    }, angularLoaded);


}

function angularLoaded() {
    alert("both loaded")
}