crossbrowser setInterval utils method