Update localNotification.js

Make it testable in a Browser.
Merge pull request #534 from sunsus/patch-1

Update localNotification.js