<a id="previous" href="">Choose previos questions</a>
<a id="next" href="">Choose next questions</a>
<script>
var id = parseInt("{{ poll.id }}")
var previous = id - 1
var next = id + 1
document.getElementByID("previous").href ="/polls/" + previous
document.getElementByID("next").href = "/polls/" + next
</script>