added requirejs and headerRegion and mainRegion