Use navigator.notification.alert instead of alert().

For consistency across the code.