adds script tag enclosed json output to add/edit poll template