[Fix #2] Javascript bug in the interactive poem

I cycle the array which makes it start from the beginning again while hitting the end.