Preparing directory structure for js-based transitions