multiple alerts in registerar.js