This is just a js warning that you are seeing? Does the gallery stop working for you when this occurs? It looks like just a simple browser js warning to me, most browsers handle js and other client side code a little differently so if you are not noticing any functionality issues then it is not something that should be of concern.
You can go into the settings of your browser and adjust the warnings to that you are not alerted everytime there is a js warning occurring.