adjust function vote js