I resolved my issue by creating the following function after having loaded and added the HTML content to the panel:
executeJSScript: function(panel) {
var scripts = panel.renderElement.dom.getElementsByTagName("script");
for(var i=0; i < scripts.length; i++) {
eval(scripts[i].text);
}
}
It gets all tags in the dom of the panel and than execute (eval function) each script.
Not very elegant indeed, but it works... Hope it could help someone and if you have a better solution, please share it!