migrate angular async loader to requirejs