Setting up Alerts in WebStorm and JS