Bug 947786 - remove 'var navigator = window.navigator'