Timer script using setInterval