fixed client when require is defined but module isn't
Merge pull request #2 from javisantana/master

fixed client when require is defined but module isn't