seems like it is working correctly. Maybe you should move your script below the HTML. or check for document ready.
var cls =document.getElementById("global-alert-queue").getElementsByClassName("animate-in")[0].innerHTML = "Change Text";
Your submission was successful.