removed alerts

replaced alerts with console.logs