fix js init problem, add vote stuff to view