Restructured JS files. Moved helper methods into the module definition, instead of having them in a separate module-helper-module.