simple setInterval changed to requestAnimFrame