Replaced alert() with desktop notification