update the  BrowserEmulator.java