deathangel1479 , onCreate is loaded before the game started , and the script size is at max 50Ko , it's not that hard loading ,
stefan52a you can use this the sync loading with ajax
$.ajax({
url: "SCRIPT_URL",
dataType: "script",
async: false,
success:function()
{
// when the script is loaded here you can use it
}
});
or here is a better one , add it inside the onCreate
$("head").append('<script src="http://open.mapquestapi.com/sdk/leaflet/v1.s/mq-map.js?key=UNIQUEKEY></script>');