Supports multiple js files in main. Works with outlayer