Check existance of `navigator` with `typeof`.

If you're running require.js in Node with a virtual DOM like jsdom,
the global window object may exist but not the global `navigator`.
This causes the `isBrowser` check to fail with a
"ReferenceError: navigator is not defined".