refactored all the native js alert() to .alert()