add an alert box to the javascript