Refactoring the module. Improved way of prototyping. Now using JSHint.