[CB-4942] [BlackBerry10]  deviceready is never fired
    - Fix typo event.toLowerCase to type.type.toLowerCase
    - Added eventListener for webworksReady to allow nativeReady to fire

    Reviewed By: Jeffrey Heifetz <jheifetz@blackberry.com>
    Tested By: Tracy Li <tli@blackberry.com>