Testing module pattern (http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html) Javascript browser code using test runners / build systems such as grunt or gulp is difficult. They seem to expect modules to be declared as Node modules. This is annoying when you have client code that…