How can I add code that will call the javascript within a block every minute?
You will need to use JavaScript's setTimeout() function:

To elaborate, place the code that calls your ad server inside a JS function.

Then, use setTimeout(), as demonstrated in the website I linked to, to call it at every x interval.