JavaScript quoting problem

Hello,
I've noticed that the PHP code generates invalid JavaScript (unquoted strings) in the call to pollVote() so I added quote marks.