Fix poem turning into "undefined"

Before this change, after clicking on the poem a few times, it
would eventually show the word "undefined".

After this change, it loops back to the start of the poem, which
is the desired behavior suggested in #2.

Close #2