[BlackBerry10] update bb10.js to work on windows too

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>