Update index.js

added checkForPushNotifications