Split app into multiple CommonJS modules