Properly add jira.webresources:backbone-1.3.3 dependency

We developed a custom plugin to add a custom dashboard gadget. Upon upgrading to 9.12.x, we are seeing missing backbone Error on the browser.

I know breaking changes were introduced on 9.7 per release notes, and I would like some guidance on how to properly include the dependency. I added <dependency>jira.webresources:backbone-1.3.3</dependency> on the web resources, but I’m still getting the error. Do I need to add something to the .js files as well?