poem validation javascript