Added main.js to interact with user from console.