Reformatting
Some fixes around portals
Fix for requestAnimationFrame race condition bug