Re-use post.js in polls too

Signed-off-by: emanuele <emanuele45@gmail.com>
typo

Signed-off-by: emanuele <emanuele45@gmail.com>
another typo and wrong variable

Signed-off-by: emanuele <emanuele45@gmail.com>