changed interface js alert to console.log