dot vote system in javascript / node js