minor fixes

* fixed trailing slash by @zeroasterisk
* align polyfill for confirm to follow cordova