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.