[JS]refine the communication with user, using console.log, rather than alert and document.write