Fix redirect loops

Using "window.location.replace" instead of "window.location =" replaces
the location in the browser history, meaning we can press the "Back"
button without being redirected back to where we were.

Also noticed that the Vote.js script occurs twice in the csproj, so
we remove the duplicate reference