split each layer into a separate files.
concat - commonjs impl.