Started using requestAnimationFrame and fixed text now showing issues