Swapping alert for console.log. If you want to see them, open the debug window before the app