Fix notifications API change in chrome 32