code refactored and consoleOutput var added in properties.js