Refactor JS modules to use the main moj namespace