This second script is called when the user presses a button. For some reason, I noticed that instead of changing the text to "Hi.", it made the entire div disappear. By adding the alerts, (which return the same value), I found that dayObject equaled "<div id = "div51"></div>".
I am quite confused by this. Why is "Hi." not appearing?