Fix javascript voting test