Removed unnecessary alerts in javascripts