only use window.webkitNotifications if available
Fix variable name