Fix poem JS bug