Add javascript handling of up and down votes