[CB-4942] BlackBerry10 never fires deviceready using cordova 3.1.0-rc1

- Fix typo event.toLowerCase to type.type.toLowerCase
- Add document.addEventListener("webworksready"