cleans up module pattern for parser.js