Error: ‘undefined’ is not an object (evaluating ‘e.get’) at pushNotifications.js (line 1)