Add a executed callback function in loadMusic() after file loading successful