Websites (js) activate Applescript that is running

Hello,

Anyone seen where a script that is running (either as an app or in Script Editor) gets activated when web pages that have heavy js use are open? Example if I have Netflix open and I rearrange my queue order of my movies, everytime I drag the list item the Applescript activates and starts doing it’s thing.

The Applescript is a repeat loop that checks if certain apps are running using System event calls, if not they are launched, if they are running they log some activity using System Event keyboard inputs.

Anyone seen this also?

Mac OS X 10.10.5

Thanks

Browser: Safari 601.7.7
Operating System: Mac OS X (10.10)