#99252 Cast votes using Ajax; refactor some results handling and split javascript into two main files - patch by fajerstarter and me