Update lib/advice.js

fixed reference errors when using in browsers: `module` is potentially undeclared in browsers, which means a bare reference isn't an appropriate test for existence. 
Merge pull request #2 from codelahoma/patch-1

fix module existence check