added javascript voting