Implemented conversion of textarea to javascript list data.

Also added a json-data div to stick things like the poll id so the
backend can stick in stuff its convenient for the front end to know
about - for example the poll id.