Allow JS Injection to work properly when MDS is disabled or has failed back

I need a sanity check on this one, so please scrutinize the changes and shout out. the existing code works fine if MDS is enabled, but when disabled or failed back, renders inconsistently (better in Chrome than IE) or requires the page to be completely refreshed.  Also, even if MDS is working properly, if I comment out this line
"RemoteManager_Inject(); //non MDS run" the RegisterModuleInit will not accomplish the task on it's own.  Maybe there's a more correct way to get the job done and I'm totally missing something, but this mod works for both MDS and non-MDS.