Move live voting js to its own file

- Move inline js from index.html to a new file called js/liveVoting.js.
  This file will contain all the application-specific code.