JS not loading when loading issue navigator for the first time

Hello!

I have some javascript (just an alert) that should be displaying when an issue is loaded. The problem is, the JS is not loading when first loading the issue navigator view.

if i open an issue using http://genesis.s4e.cl:2990/jira/browse/TEST-2, the JS works OK.

if i go to the issue navigator http://genesis.s4e.cl:2990/jira/browse/TEST-7?jql=, when it loads for the first time, the JS is not shown.

but if i select another issue from this view (including the already selected issue TEST-7) the JS works:

my JS is:

require([
			'jira/util/events',
		  	'jira/util/events/types',
        'jira/util/events/reasons',
		 ], function(Events, EventTypes, EventReasons) {

	"use strict";
	


    Events.bind(JIRA.Events.NEW_CONTENT_ADDED , function(e, jiraContext, reason) {

        alert(reason);

        switch (reason) {
            case EventReasons.pageLoad:
                alert(reason);
                break;
            
        }
        
        
    });
  });

Any help is appreciated.

Thank you in advance.