(function () { var r = new RegExp("(^|(.*?\\/))(mbgl-include\.js)(\\?|$)"), s = document.getElementsByTagName('script'), targetScript, baseUrl; for (var i = 0; i < s.length; i++) { var src = s[i].getAttribute('src'); if (src) { var m = src.match(r); if (m) { targetScript = s[i]; baseUrl = m[1]; break; } } } function inputScript(url) { var script = '