Are there any error messages? I can't debuge the js for you but I will recommend looking at console errors and
maybe server side errors.
It could be the issue with the JS you are inserting due to it using document which can vary depending on
how different websites create their view pages.
This is not a feature or bug we currently have so I can't help you much but
with a simple debugging I think is it possible! Wish you all the luck!