vote form and js clean up