Update localNotification.js

Make it testable in a Browser.