Refactoring js and ajax part of modal poll windows so they will work properly in all browsers
Layout for polls work