add javascript to votes