JS window.setInterval() expects two parameters.