Changed console.log() function calls to Log() so that they can be deactivated by setting DEBUG to false.