updated vote and master js files to use new global function to redirect players.