adds submissionAndVoting phase; adds polyfill for older browsers