replace alert() calls with custom notifications.