Changing browsersim API for integration with cordovasim