Do I need to refactor my code?

Nope. One script tag. That's it. We handle the rest. Lightweight, fast, and won't break your existing setup. Works with whatever you've got.