putting setInterval in the body