add bool loader to check if model is properly loaded, remove the need for the script.js file at the price of a workaround