Use the window reference to check if webkitnotifications exist