CordovaSim and BrowserFunction fixes