Javascript bug in the interactive poem - fixed

Fixed the 'undefined' bug.