fixed issue #5 (v9.0.3b)

Fixed issue: https://github.com/j-l-n/noti.js/issues/5 (added helper function to check if document has focus instead of using document.hasFocus() that is not supported in Opera)