vote system in js