module voting: fix javascript