Fix DOM based XSS security issue in INTERMediatorCheckBrowser function