javascript and prettify up/down votes