Moved fix table function to utils
Use requestAnimationFrame instead of scroll