moved react scripts to end of page to prevent load race