Probably not a good place to put this script, as it will also be used in the embed code and that code should be as light as possible.

Also, `document.querySelectorAll` is not cross browser safe.