All I need to do is to execute a callback function when my current function execution ends.
function LoadData() { alert(\'The data has been loaded\');
It is good practice to make sure the callback is an actual function before attempting to execute it:
if (callback && typeof(callback) === "function") { callback(); }