moved console.log into the a different function, and fixed the bug
Merge pull request #4 from HealthWave/consolelog-bug-fix

moved console.log into the a different function, and fixed the bug