Added log() method which prints the specified msg in browser's console window.