Hi guys!
I solved my own issue. I think what was happening was due to this line here:
$('body').wrapInner('<div class=blur-all></div>');
When I wrapped the body in this ‘blur-all’ div I had created, it somehow triggered React to reload. I assume this because in the console I could see ‘App started!’ twice. I think this was causing my embedded script to load and run twice.
To fix this - instead of wrapping the whole body in a new div container - I just used the jquery method insertBefore(); to add the deiv before the body and not wrap it. This solved my issue!