Fixing cordova.js to work when the platform specific file doesn't exist as well as adding BB10 support