Split the modes generated js from the main js.