Execute a callback once required scripts have been loaded.