This pure javascript function allows to dynamically include a script and then execute any function by using a callback.
/**********************************
* FUNCTIONS
***********************************/
function loadScript(url, callback){
var script = document.createElement("script");