React Change Css Variable Using Javascript Innerhtml Not Updating