Ajax Fetch: Fixed the plugin not working when triggered at the document level