replacement of the navigator object to window.navigator

In firefox 28 and later navigator.mozGetUserMedia is window.navigator.mozGetUserMedia
In versions earlier than firefox 28 window.navigator.mozGetUserMedia works too