Partially convert poll plugin to use ES6 modules

I had trouble converting poll_ui.js to ES6 because the transpiler doesn't seem to handle non-module ES6 files very well, I found that the code was being wrapped in some AMD stuff and wasn't being executed. Will need to sort that out but I figured this was a decent start.

cc @eviltrout @ligthyear