multiple alerts in registerar.js2