How to use console.log to simplify refactoring
community.codenewbie.org