Keep app browser runnable

Added an abstraction layer: a notification interface that displays
native alert when running on device and js alert when running in browser