uploading image to firebase using javascript

im trying to upload a image to firebase but im not sure of what im doing wrong when I run this I get error service is not available im not sure what im doing wrong im just following the documentation. I would really appreciate if someone took a look at this and tell me if im doing something wrong

 <script type="module">
    

    // TODO: Add SDKs for Firebase products that you want to use
    // https://firebase.google.com/docs/web/setup#available-libraries
      //Import the functions you need from the SDKs you need
    import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.7/firebase-app.js";
    import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.6.7/firebase-analytics.js";
    // Import the functions you need from the SDKs you need
    import { getStorage , ref , uploadBytes } from "https://www.gstatic.com/firebasejs/9.5.0/firebase-storage.js";
    
     
    function run(){

        // Your web app's Firebase configuration
        // For Firebase JS SDK v7.20.0 and later, measurementId is optional
        const firebaseConfig = {
        apiKey: "my details",
        authDomain: "my details",
        databaseURL: "my details",
        projectId: "my details",
        storageBucket: "my details",
        messagingSenderId: "my details",
        appId: "my details",
        measurementId: "my details"
        };
    
        // Initialize Firebase
        const firebaseApp = initializeApp(firebaseConfig);
        
        const storage = getStorage(firebaseApp);
        const storageRef = ref(storage, `upcomingTasks/hi.jpg`);


        // 'file' comes from the Blob or File API
        const file = document.getElementById("myimg").files[0];
        console.log("running")

        uploadBytes(storageRef, file).then((snapshot) => {
            console.log('Uploaded a blob or file!');
        });

        
    }
    

    window.onload(run())



</script>