Convert Kunena poll script to use jQuery