replace console.log with Prompt.log